﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Rock
{
    public enum EnumResult
    {
        电脑赢,
        玩家赢,
        平手
    }
    public enum EmunFist
    {
        石头=1,
        剪刀=2,
        布=3
    }

    public class Judge
    {
        public static  EnumResult GetResult(int playerNum,int computerNum)
        {
            if (playerNum == computerNum)
                return EnumResult.平手;
            else if (playerNum - computerNum == -1 || playerNum - computerNum == 2)
                return EnumResult.玩家赢;
            else
                return EnumResult.电脑赢;
        }
        
           
        
    }
}
